<%@ include file="/inc/header.jsp" %>

<span class="titrePage">
	<spring:message code="entity.Eleve" />
</span>
<br/>
<br/>
<blockquote>

	<common:messages />
	
	<div class="formLayout">
	<c:if test="${!empty eleve.id}">
		<c:url var="formUrl" value="/spring/eleves/update" />
	</c:if>
	<c:if test="${empty eleve.id}">
		<c:url var="formUrl" value="/spring/eleves/add" />
	</c:if>
	<form:form name="eleveForm" action="${formUrl}" modelAttribute="eleve" method="POST">
	<fieldset>
		<legend><spring:message code="title.search"/></legend>
		<form:hidden path="id" />

		<form:errors path="*" cssClass="erreur" />
	
		<label for="prenom"><spring:message code="field.prenom" /></label>
		<form:input path="prenom" /> <br />
	
		<label for="nom"><spring:message code="field.nom" /></label>
		<form:input path="nom" /> <br />
	
		<label for="classe"><spring:message code="field.classe" /></label>
		<form:input path="classe" /> <br />
		<div class="buttonBar" align="center">
			<input type="submit" name="submit" value="<spring:message code="button.save"/>" />
	        <teachertools:cancelButton />
		</div>
	</fieldset>
	</form:form>
	</div>
</blockquote>

<br/>
<br/>
<a href="javascript:history.back()"><spring:message code="libelle.retour"/></a>

<%@ include file="/inc/footer.jsp" %>
